<style type="text/css">
.text_div{
    padding-top: 5px;
}
</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('申請中心')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="text_div">{$row.affiliated_center_text|htmlentities}</div>
            </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('所在地區')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="text_div">{$area_tow_id.name|htmlentities}</div>
            </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="text_div">{$row.name|htmlentities}</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('香港手機號')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="text_div">{$row.mobile|htmlentities}</div>
        </div>
    </div>
      <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('內地手機號')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="text_div">{$row.mobile_china|htmlentities}</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('常住地址')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="text_div">{$row.address|htmlentities}</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">身份證前綴:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="text_div">{$row.id_card_front|htmlentities}</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Id_card')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="text_div">{$row.id_card|htmlentities}</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">身份證後綴:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="text_div">{$row.id_card_after|htmlentities}</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Birthday')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="text_div">{$row.birthday|htmlentities}</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('微信ID')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="text_div">{$row.wechat_id|htmlentities}</div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('服務偏好')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="text_div">{$row.service_type|htmlentities}</div>
        </div>
    </div>
     <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('自我簡介')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="text_div">{$row.remark|htmlentities}</div>
        </div>
    </div>

    {if $row.status  != 1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} disabled/> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    {/if}
    {if $row.audittime >0}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Audittime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-audittime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" type="text" value="{:$row.audittime?datetime($row.audittime):''}" disabled >
        </div>
    </div>
    {/if}
    {if $row.status  == 3}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">拒絕原因:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-audreason"  class="form-control" rows="5" cols="50" disabled>{$row.audreason|htmlentities}</textarea>
        </div>
    </div>
    {/if}

    {if $row.status  == 1}

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">審核狀態:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-status" data-rule=""  class="form-control selectpicker" name="row[status]" data-rule="required"  onchange="select_status()">
                <option value="2">通過</option>
                <option value="3">拒絕</option>
            </select>
        </div>
    </div>
    <div class="form-group" id="audreason_div" style="display: none;">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red" >*</a>拒絕原因:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-audreason" data-rule="" class="form-control" rows="5" name="row[audreason]" cols="50" placeholder="請填寫拒絕原因"></textarea>
        </div>
    </div>
    {/if}
    {if $row.status  == 1}
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
    {/if}
</form>

<script type="text/javascript">
    
    function select_status() {
        var status=($("#c-status").val());
        if ( status==3 ) {
            $("#audreason_div").show();
        }else{
            $("#audreason_div").hide();
        }
    }
</script>